package demo6;

/**
 * 设计为单例的
 */
public class Student {
    private static Student instance = new Student();
    private Student(){}

    public static Student getInstance(){
        return instance;
    }
}
